package com.example.internetplus.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.internetplus.domain.enums.JobEnum;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.bytebuddy.asm.Advice;
import net.sf.jsqlparser.expression.LongValue;

@ApiModel("用户")
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@Data
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String userName;
    private String password;
    private JobEnum job;
    private String image;
    public User (Long id , String userName, String password, JobEnum job){
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.job = job;
    }
}
